computeCurrentVelocity
Compute the current velocity based on the points that have been collected. Only call this when you actually want to retrieve velocity information, as it is relatively expensive. You can then retrieve the velocity with getAxisVelocity ()}.
Parameters
The VelocityTracker for which to compute velocity.
The units you would like the velocity in. A value of 1 provides units per millisecond, 1000 provides units per second, etc. Note that the units referred to here are the same units with which motion is reported. For axes X and Y, the units are pixels.
The maximum velocity that can be computed by this method. This value must be declared in the same unit as the units parameter. This value must be positive.
Equivalent to invoking computeCurrentVelocity with a maximum velocity of Float.MAX_VALUE.